{//前台电子合同收款界面模板}
<include file="Public:header" />
<script type="text/javascript">
    $(function(){
        $('[name=price]').focus();
        $('[name=b]').click(function(){
            var price=$('[name=sk_price]').val();
            var sj_no=$('[name=sj_no]').val();
            if(price==''){
                alert('请填写收款金额！');
                $('[name=sk_price]').focus();
                return false;
            }
            if(sj_no==''){
                alert('收据号必须填写！');
                $('[name=sj_no]').focus();
                return false;
            }
            if(!isNumber(price)){
                alert('请正确填写收款金额！');
                $('[name=sk_price]').focus();
                return false;
            }
            $("form:first").submit();
        });

        function isNumber(field)
         {
            var   Ret   =   true;
            var   NumStr= "0123456789 ";
            var   chr;
            for   (i=0;i <field.length;++i)
            {
            chr=field.charAt(i);
            if   (NumStr.indexOf(chr,0)==-1)
            {
            Ret=false;
            }
            }
            return(Ret);
        }
    });
</script>
<div style="margin-left: 10px;">
    <span class="title_text">学员姓名：</span>{$stu_name}&nbsp;&nbsp;&nbsp;&nbsp;进行收款
    
<table width="300" border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse" bordercolor="#000000">
    <form  method="post" action="{:U('ppts/save_qt_hetong_sk')}" name="sk">
    <tr>
        <td width="30%" align="right">收款方式：</td>
        <td width="70%">
            <select name="sk_kind">
                <option value="现金">现金</option>
                <option value="转账">转账</option>
                <option value="POS">POS</option>
                <option value="支票">支票</option>
            </select>

        </td>
    </tr>
    <tr>
        <td width="30%" align="right">收款金额：</td>
        <td width="70%"><input name="sk_price" type="text" size="15" /></td>
    </tr>
    <tr>
        <td width="30%" align="right">收款用途：</td>
        <td width="70%">
            <select name="sk_yongtu">
                <option value="合同定金">合同定金</option>
                <option value="部分回款">部分回款</option>
                <option value="回款">回款</option>
                <option value="一次全款">一次全款</option>
            </select>
        </td>
    </tr>
    <tr>
        <td width="30%" align="right">收据号：</td>
        <td width="70%">
            <input type="text" size="15" name="sj_no" />
        </td>
    </tr>
    <tr>
        <td width="30%" align="right">银行流水号：</td>
        <td width="70%">
            <input type="text" size="15" name="yh_no" />
        </td>
    </tr>
    <tr>
        <td width="30%" align="right">收款备注：</td>
        <td width="70%">
            <textarea cols="25" rows="3" name="sk_beizhu"></textarea>
        </td>
    </tr>
    <tr>
        <td width="100%" colspan="2" align="center">
            <input type="hidden" value="{$ht_id}" name="ht_id" />
            <input type="hidden" value="{$stu_id}" name="stu_id" />
            <input type="button" value="确认收款" name="b" />&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="button" onclick="javascript:self.parent.tb_remove();" value="取  消" name="c" />
        </td>
    </tr>
    </form>
</table>
    
</div>
<include file="Public:ender" />
